#pragma once


#include <cctype>
#include <algorithm>

#include <hash_map>

using namespace std;

class ResourceManager;
class Sound;
struct IDirectSound;

class SoundManager
{
public:
	SoundManager( ResourceManager* resourceManager );
	~SoundManager();

	void Init();	
	void UnInit();

	void Play( const char* pName );

	Sound* Load( const char* pName );
	void UnLoad();


private:
	IDirectSound*	m_lpDirectSound;

	stdext::hash_map< std::string, Sound* > m_hmapSounds;
	ResourceManager* m_pResourceManager;

	Sound*			m_pCurrentSound;
};